package com.qclix.inv.dao;

import com.qclix.inv.Invoice;

import java.util.List;

/**
 * Describes the persistence methods for invoices
 */
public interface InvoiceDAO {
    public void add(Invoice invoice) throws DAOException;
    public long getAmountOfInvoicesOnYear(int year) throws DAOException;
    public Invoice getLastInvoice() throws DAOException;
    public List<Invoice> getLastInvoices(int amount) throws DAOException;
}
